/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const missionRouter = {
  path: '/mission',
  component: Layout,
  redirect: 'noRedirect',
  name: '任务',
  meta: {
    title: '任务',
    icon: 'chart'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/workflow/mission'),
      name: '全部任务',
      meta: { title: '全部任务', noCache: true }
    },
    {
      path: 'wait',
      component: () => import('@/views/mission/wait'),
      name: '待处理',
      meta: { title: '待处理', noCache: true }
    },
    {
      path: 'finish',
      component: () => import('@/views/mission/finish'),
      name: '已处理',
      meta: { title: '已处理', noCache: true }
    }
  ]
}

export default missionRouter
